<?php


namespace app\model;


use think\Model;
use think\model\concern\SoftDelete;

class User extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $table = 't_user';

    //只读字段
    protected $readonly = ['id'];

     //逻辑删除
    use SoftDelete;
    protected $deleteTime = 'is_deleted';

    // 模型数据不区分大小写
    protected $strict = false;


    // 定义时间戳字段名
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';

}